import { ElMessage } from 'element-plus'

export const defaultCatchError = err => {
    ElMessage({
        type: 'error',
        message: err?.data?.msg || err?.message || 'Error',
        grouping: true
    })
}